﻿@{
    ViewBag.Title = "活动报名";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model UcAsp.Models.Articles
<script type="text/javascript">
    $(function () {
        $("#saveSign").click(function ()
        {
if ($("input[name='TrueName']").val() == "" || $("input[name='Moblie']").val() == "")
                {alert("请输入您的姓名和联系方式！")
                return;}
            $.post("/Sign/SaveSign", { TrueName: $("input[name='TrueName']").val(), Sex: $('input[type="radio"][name="Sex"]:checked').val(), HomeTel: $("input[name='HomeTel']").val(), Email: $("input[name='Email']").val(), QQ: $("input[name='QQ']").val(), MyCourse: $("input[name='MyCourse']").val(), Address: $("input[name='Address']").val(), Mobile: $("input[name='Moblie']").val(), Remark: $("#Remark").val() }, function (data) {
                if (data.Result)
                {
                    alert("报名成功");
                    location.href = "/";
                } else {
                    alert(data.Messages);
                    return;
                }
            })
        })
    })
</script>
<div class="border" style="margin:5px; margin-bottom:20px;">
<div style="margin:20px; color:#a2d312; font-size:30px;"> 在线报名 </div>
<div class="poitline"></div>
<div class="sign_left">用户名：</div><div class="sign_mid"><input name="TrueName" type="text" /></div><div class="sign_right" >*  </div>
<div class="clear"></div>
<div class="sign_left">性别：</div><div class="sign_mid">
 <input name="Sex" type="radio" style="width:40px;height:15px;" value="true" />男<input name="Sex" type="radio" style="width:40px;height:15px;" value="fales" /> 女 </div><div class="sign_right" >* </div>
<div class="clear"></div>
<div class="sign_left">联系电话：</div><div class="sign_mid"><input name="HomeTel" type="text" /></div><div class="sign_right" >* </div>
<div class="clear"></div>
    <div class="sign_left">手机：</div><div class="sign_mid"><input name="Moblie" type="text" /></div><div class="sign_right" >* </div>
<div class="clear"></div>
<div class="sign_left">邮箱：</div><div class="sign_mid"><input name="Email" type="text" /></div><div class="sign_right" >* </div>
<div class="clear"></div>
<div class="sign_left">QQ：</div><div class="sign_mid"><input name="QQ" type="text" /></div><div class="sign_right" >* </div>
<div class="clear"></div>
<div class="sign_left">活动名称：</div><div class="sign_mid"><input name="MyCourse" type="text" value="@Model.Title" /></div><div class="sign_right" >* </div>
<div class="clear"></div>
<div class="sign_left">地址：</div><div class="sign_mid"><input name="Address" type="text" /></div><div class="sign_right" >* </div>
<div class="clear"></div>
<div class="sign_left">备注：</div>
    <textarea id="Remark" cols="60" rows="5"></textarea>
<div class="clear"></div>
<div class="sign_left"></div><div class="sign_mid">
    <input id="saveSign" type="button" value="发送" /></div> <div class="sign_right" > </div>
<div class="clear"></div>

    
</div>